const baseUrl = "http://localhost:8080";

function request(url,method,data,success){
  wx.request({
    url: `${baseUrl}${url}`,
    method:method,
    data:data,
    header:{
      "Content-Type":"application/json"
    },
    success:success
  })
}

export default request;